package com.repetition.repetition.config;/**
 * @author wzj
 * @date 2020/4/28 11:46
 * @version 1.0
 */

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisSentinelConfiguration;
import org.springframework.data.redis.connection.jedis.JedisClientConfiguration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * auther wzj
 * date 2020/4/28 11:46
 */
@Configuration
public class Config {

   /* @Bean
    @ConfigurationProperties(prefix = "spring.redis")
    public JedisConnectionFactory getRedis(){
        return new JedisConnectionFactory(new RedisSentinelConfiguration(), JedisClientConfiguration.builder().build());
    }*/
   /* @Bean
    <K, V> RedisTemplate<K, V> getRedisTemplate() {
        RedisTemplate<K, V> redisTemplate = new RedisTemplate<K, V>();
        redisTemplate.setConnectionFactory();
        return redisTemplate;
    }*/
}
